package com.mb.app.service;

import com.baomidou.mybatisplus.service.IService;
import com.mb.app.domain.TbIndexProductInfo;
import com.mb.app.domain.TbIndexProductInfo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author liliping
 * @since 2019-04-03
 */
public interface ITbIndexProductInfoService extends IService<TbIndexProductInfo> {

    /**
     * 分页查询
     * @param map
     * @return
     */
    public List<TbIndexProductInfo> queryList(Map<String, Object> map);

    public int count(Map<String, Object> map);

    public int save(TbIndexProductInfo TbIndexProductInfo);

    public int update(TbIndexProductInfo TbIndexProductInfo);

    public int remove(Long id,Long delUserId);

    public TbIndexProductInfo getDtl(Long id);

    boolean indexProductNameExit(Map<String, Object> params);

    /**
     * 分页查询
     * @param map
     * @return
     */
    public List<TbIndexProductInfo> queryListTop(Map<String, Object> map);

    public int countTop(Map<String, Object> map);

    public TbIndexProductInfo getDtlTop(Long id);


}
